import Vue from "vue"
import VueRouter from "vue-router"
import index from "../pages/index/index"
import list from "../pages/list/list"
import detail from "../pages/detail/detail"
import shopCart from "../pages/shop-cart/shop-cart"
import membCent from "../pages/memb-cent/memb-cent"
Vue.use(VueRouter)

const routes = [
    {
        path:"/",
        component:index
    },
    {
        path:"/list",
        name:"list",
        props:true,
        component:list
    },
    {
        path:"/detail/:id",
        name:"detail",
        props:true,
        component:detail
    },
    {
        path:"/shopCart",
        component:shopCart
    },
    {
        path:"/membCent",
        component:membCent
    }
]

export default new VueRouter({
    routes
})

